FROM centos:7 AS build
ENV container docker

#用户
USER root

RUN yum -y update \
    && yum -y install curl wget \
    && rm -rf /var/lib/apt/lists/*
RUN curl https://jexus.org/release/x64/install.sh|sh

RUN rpm -Uvh https://packages.microsoft.com/config/centos/7/packages-microsoft-prod.rpm
#RUN yum install -y dotnet-sdk-3.1
RUN yum install -y aspnetcore-runtime-3.1 && yum clean all

ADD init.sh /bin
RUN chmod +x /bin/init.sh;yum -y clean all

EXPOSE  80 443
WORKDIR /usr/jexus
ENTRYPOINT ["/bin/init.sh"]
